android fragment fullscreen

92

android fragment fullscreen -

override fun onAttach(context: Context) {
    super.onAttach(context)
    requireActivity().window.addFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS)
}

override fun onDetach() {
    requireActivity().window.clearFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS)
    super.onDetach()
}

Comments

Submit
0 Comments